package com.ruoyi.service;

import com.fasterxml.jackson.core.JsonProcessingException;
import com.ruoyi.domain.HisCart;
import com.ruoyi.domain.HisMedicineDrug;

import java.util.List;

public interface IHisMedicineCartService {
    int   addDrugToCart(Long userId,Long[] drugIds) throws JsonProcessingException;

    List<HisMedicineDrug> selectCartByUserId(Long userId) throws JsonProcessingException;


    int deleteCartByCarId(Long[] drugIds,Long userId) throws JsonProcessingException;

    int setCartDrugNum(HisMedicineDrug hisMedicineDrug,Long userId) throws JsonProcessingException;

    int setCartDrugFactory(HisMedicineDrug hisMedicineDrug,Long userId) throws JsonProcessingException;

}
